package com.qqtech.qquan.mall.dao;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Repository;

import com.qqtech.core.frame.dao.BaseDaoImpl;
import com.qqtech.qquan.mall.model.MallBrand;
import com.qqtech.qquan.mall.model.MallBrandVo;

@Repository
public class MallBrandDaoImpl extends BaseDaoImpl<MallBrand> implements MallBrandDao {
	public static final Logger log = LoggerFactory.getLogger(MallBrandDaoImpl.class);

	@Override
	public Page<MallBrandVo> queryPageListAdmin(MallBrand query,
			Pageable pageable) {
		List<MallBrandVo> contentList = sqlSessionTemplate.selectList(getSqlName("selectAdmin"), getParams(query, pageable));
		return new PageImpl<MallBrandVo>(contentList, pageable, this.queryCount(query));
	}
	
}
